package com.sdry.model.llm;
/** 
* 角色
* @author lian 
* @version 1.0
* @time 2018年10月17日 上午12:33:03
*/
public class Role {

	private Long rid;
	/**
	 * 名称
	 */
	private String name; 
	/**
	 * 描述
	 */
	private String descride; 
	/**
	 * 创建时间
	 */
	private String createTime;	
	public Role(Long rid, String name, String descride, String createTime) {
		super();
		this.rid = rid;
		this.name = name;
		this.descride = descride;
		this.createTime = createTime;
	}
	public Role() {
		super();
	}
	public Long getRid() {
		return rid;
	}
	public void setRid(Long rid) {
		this.rid = rid;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getDescride() {
		return descride;
	}
	public void setDescride(String descride) {
		this.descride = descride;
	}
	public String getCreateTime() {
		return createTime;
	}
	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}
	@Override
	public String toString() {
		return "Role [rid=" + rid + ", name=" + name + ", descride=" + descride + ", createTime=" + createTime + "]";
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((createTime == null) ? 0 : createTime.hashCode());
		result = prime * result + ((descride == null) ? 0 : descride.hashCode());
		result = prime * result + ((name == null) ? 0 : name.hashCode());
		result = prime * result + ((rid == null) ? 0 : rid.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Role other = (Role) obj;
		if (createTime == null) {
			if (other.createTime != null)
				return false;
		} else if (!createTime.equals(other.createTime))
			return false;
		if (descride == null) {
			if (other.descride != null)
				return false;
		} else if (!descride.equals(other.descride))
			return false;
		if (name == null) {
			if (other.name != null)
				return false;
		} else if (!name.equals(other.name))
			return false;
		if (rid == null) {
			if (other.rid != null)
				return false;
		} else if (!rid.equals(other.rid))
			return false;
		return true;
	}
	
}
